﻿@model S4Store.Models.SellerReport.BySellerModel
@{
    Layout = null;
    ViewBag.Title = "BySeller";
    //var width = (100 + Model.AdvIndexs.Count * 175) + "px";
    //if (Model.AdvIndexs.Count <5)
    //{
    //    width = "100%";
    //}
}

<script type="text/javascript">
    $(function () {
        var $c = $("#myContentArea");
        var count = $("#myContentArea").find("table td").has(".value").size();
        var right = parseInt($("#right").css("width").replace("px", "")) - 20;
        if (count * 190 + 70 >= right) {
            $c.width(count * 190 + 70);
        }
    });
</script>
<div style="height: 100%; width: 100%; overflow: auto;">
<div id="myContentArea" style="overflow:hidden">
@Html.Action("ReportBar", "Common", Model.BarModel)
<div style="position:relative; overflow:auto">      
        @Html.Partial("../Chart/Column",Model.ChartData)
        @Html.Partial("../Chart/AdvIndex", Model.AdvIndexs)    
</div>
</div>
</div>
